//
// C++ Interface: applicationinfo
//
// Description:
//
//
// Author: Ernesto Barragan <ernestus *at* gmail.com>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef APPLICATIONINFO_H
#define APPLICATIONINFO_H

#include <QString>
#include <QList>

/**
A simple class to hold some information for the app launcher

	@author Ernesto Barragan <ernestus *at* gmail.com>
*/
class ApplicationInfo
{
public:
    typedef QList<ApplicationInfo> List ;
    ApplicationInfo( const QString& pathToFile ) ;
    ApplicationInfo( const ApplicationInfo& rhs ) ;

    ~ApplicationInfo();

    QString execString() const ;
    QString name() const ;
    QString comment() const ;
    QString icon() const ;
    bool isValid() const ;

private:
    QString m_rightValue( const QString& expr ) const ;

    QString m_execString ;
    QString m_name ; //shown to the user in the launcher
    QString m_comment ;
    QString m_icon ; //path to the icon or icon name
} ;


#endif
